package com.ytjj.quartz.dao;

import com.ytjj.qmyx.mall.model.ProductInfoStatistics;
import com.ytjj.quartz.model.ProductInfoRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * 
 * @Version: 1.0
 */
public interface ProductInfoDao {

    Integer insertProductInfo(ProductInfoStatistics productInfoStatistics);

    Integer updateProductInfo(ProductInfoStatistics productInfoStatistics);

    ProductInfoStatistics getStatistics(ProductInfoRequest productInfoRequest);

    Integer flushProductInfo(ProductInfoStatistics productInfoStatistics);

    List<Integer> selectProductBankerProductId(@Param("status") Integer status);

    int updateProductStockByBankerProductId(@Param("bankerProductId") Integer bankerProductId, @Param("stock") Integer stock);

    void updateProductReviews();

}
